package com.tang.pojo;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;

public class Handler {
	private Object controller;
	private Method method;
	private Pattern pattern;
	private Map<String, Integer> parameterMapping;

	public Handler(Object controller, Method method, Pattern pattern) {
		this.controller = controller;
		this.method = method;
		this.pattern = pattern;
		this.parameterMapping = new HashMap<>();
	}

	public Object getController() {
		return controller;
	}

	public void setController(Object controller) {
		this.controller = controller;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public Pattern getPattern() {
		return pattern;
	}

	public void setPattern(Pattern pattern) {
		this.pattern = pattern;
	}

	public Map<String, Integer> getParameterMapping() {
		return parameterMapping;
	}

	public void setParameterMapping(Map<String, Integer> parameterMapping) {
		this.parameterMapping = parameterMapping;
	}
}
